<template>
    <button @click="showLoading">显示加载框</button>
</template>
<script setup lang="ts">
import { PiniaLoading } from '@/pinia/YcPinia';

const loadStore = PiniaLoading()
const showLoading = () => {
    loadStore.showLoading()
    // setTimeout(() => {
    //     loadStore.hideLoading()
    // }, 3000)
}
</script>
<style scoped>

</style>